<?php /* Smarty version 2.6.26, created on 2012-05-12 14:59:47
         compiled from blocks%5Ccategory_level.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'replace', 'blocks\\category_level.tpl', 22, false),array('modifier', 'cat', 'blocks\\category_level.tpl', 30, false),array('modifier', 'regex_replace', 'blocks\\category_level.tpl', 32, false),)), $this); ?>
<!-- category level -->

<?php if ($this->_tpl_vars['category']['Type']): ?>
	<?php $this->assign('cat_type', $this->_tpl_vars['category']['Type']); ?>
<?php else: ?>
	<?php $this->assign('cat_type', $this->_tpl_vars['section']['Type']); ?>
<?php endif; ?>

<?php $this->assign('replace', ('{')."category".('}')); ?>

	<ul <?php if ($this->_tpl_vars['first']): ?>class="first"<?php endif; ?> <?php if ($this->_tpl_vars['category']['ID']): ?>id="tree_area_<?php echo $this->_tpl_vars['category']['ID']; ?>
"<?php endif; ?>>
	<?php $_from = $this->_tpl_vars['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['catF'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['catF']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['cat']):
        $this->_foreach['catF']['iteration']++;
?>
		<?php if (! empty ( $this->_tpl_vars['cat']['Sub_cat'] ) || ( $this->_tpl_vars['cat']['Add'] == '1' && $this->_tpl_vars['listing_types'][$this->_tpl_vars['cat_type']]['Cat_custom_adding'] )): ?>
			<?php $this->assign('sub_leval', true); ?>
		<?php else: ?>
			<?php $this->assign('sub_leval', false); ?>
		<?php endif; ?>
			
		<li id="tree_cat_<?php echo $this->_tpl_vars['cat']['ID']; ?>
" <?php if ($this->_tpl_vars['cat']['Lock']): ?>class="locked"<?php endif; ?>>
			<img <?php if (! $this->_tpl_vars['sub_leval']): ?>class="no_child"<?php endif; ?> src="<?php echo $this->_tpl_vars['rlTplBase']; ?>
img/blank.gif" alt="" />
			<a title="<?php echo ((is_array($_tmp=$this->_tpl_vars['lang']['add_listing_to'])) ? $this->_run_mod_handler('replace', true, $_tmp, $this->_tpl_vars['replace'], $this->_tpl_vars['cat']['name']) : smarty_modifier_replace($_tmp, $this->_tpl_vars['replace'], $this->_tpl_vars['cat']['name'])); ?>
" <?php if ($this->_tpl_vars['cat']['Lock']): ?>class="cursor_default"<?php endif; ?> href="<?php if ($this->_tpl_vars['cat']['Lock']): ?>javascript:void(0);<?php else: ?><?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pageInfo']['Path']; ?>
/<?php if ($this->_tpl_vars['cat']['Tmp']): ?>tmp-category<?php else: ?><?php echo $this->_tpl_vars['cat']['Path']; ?>
<?php endif; ?>/<?php echo $this->_tpl_vars['steps']['plan']['path']; ?>
.html<?php if ($this->_tpl_vars['cat']['Tmp']): ?>?tmp_id=<?php echo $this->_tpl_vars['cat']['ID']; ?>
<?php endif; ?><?php else: ?>?page=<?php echo $this->_tpl_vars['pageInfo']['Path']; ?>
&amp;step=<?php echo $this->_tpl_vars['steps']['plan']['path']; ?>
&amp;<?php if ($this->_tpl_vars['cat']['Tmp']): ?>tmp_id<?php else: ?>id<?php endif; ?>=<?php echo $this->_tpl_vars['cat']['ID']; ?>
<?php endif; ?><?php endif; ?>"><?php echo $this->_tpl_vars['cat']['name']; ?>
</a>
			<span class="tree_loader"></span>
		</li>
	<?php endforeach; endif; unset($_from); ?>
		<?php if ($this->_tpl_vars['category'] && $this->_tpl_vars['listing_types'][$this->_tpl_vars['cat_type']]['Cat_custom_adding'] && $this->_tpl_vars['category']['Add'] == 1): ?>
		<li class="tmp dark">
			<img class="no_child" src="<?php echo $this->_tpl_vars['rlTplBase']; ?>
img/blank.gif" alt="" />
			<?php $this->assign('tmp_link', '<a href="javascript:void(0);" class="static">$1</a>'); ?>
			<?php $this->assign('cat_name', ((is_array($_tmp=((is_array($_tmp='<b>')) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['category']['name']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['category']['name'])))) ? $this->_run_mod_handler('cat', true, $_tmp, '</b>') : smarty_modifier_cat($_tmp, '</b>'))); ?>
			<?php $this->assign('replace', ('{')."category".('}')); ?>
			<span class="tmp_info"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lang']['tmp_category_info'])) ? $this->_run_mod_handler('regex_replace', true, $_tmp, '/\[(.*)\]/', $this->_tpl_vars['tmp_link']) : smarty_modifier_regex_replace($_tmp, '/\[(.*)\]/', $this->_tpl_vars['tmp_link'])))) ? $this->_run_mod_handler('replace', true, $_tmp, $this->_tpl_vars['replace'], $this->_tpl_vars['cat_name']) : smarty_modifier_replace($_tmp, $this->_tpl_vars['replace'], $this->_tpl_vars['cat_name'])); ?>
</span>
			<span class="tmp_input hide"><span><input type="text" /><input title="<?php echo $this->_tpl_vars['lang']['add']; ?>
" onclick="xajax_addTmpCategory($(this).prev().val(), '<?php echo $this->_tpl_vars['category']['ID']; ?>
');$(this).parent().parent().next().fadeIn('slow');" class="accept" type="button" /></span><img class="remove" title="<?php echo $this->_tpl_vars['lang']['cancel']; ?>
" src="<?php echo $this->_tpl_vars['rlTplBase']; ?>
img/blank.gif" alt="" /></span>
			<span class="tree_loader"></span>
		</li>
		<?php endif; ?>
	</ul>

<!-- category level end -->